<!-- parcelados/_details -->

<div class="row-fluid">
	<div class="span12">
		<fieldset>
			<%= show_model @parcelado, :only => ["data", "valor", "parcelas", "observacao"] %>
		</fieldset>
	</div>
</div>

<div class="row-fluid">
	<div class="span12">	
		<table class="table table-striped">
			<thead>
				<tr>
					<th colspan="4">Parcelas</th>
				</tr>
				<tr>
					<th>Observação</th>
					<th>Data</th>
					<th>Valor</th>
					<th>Quitada</th>
					<th></th>
				</tr>
			</thead>
	
			<tbody>
				<% @parcelado.parcelamento.each do |p| %>
					<tr>
						<td class="span6"><%= p.observacao %></td>
						<td class="text-center span2"><%= I18n.localize p.data %></td>
						<td class="text-center span2"><%= number_to_currency p.valor %></td>
						<td class="text-center span1"><%= p.quitada? %></td>
						<td class="span1 text-center"><%= show_link p %>
					</tr>
				<% end %>
			</tbody>	
		</table>
	</div>
</div>
